<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>

<head>
<title>网格管理</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<jsp:include page="/WEB-INF/views/config/include.jsp" />

<style>
.title {
	width: 100%;
	display: inline-block;
	height: 30px;
	text-align: center;
	line-height: 30px;
}

span {
	display: inline-block;
	height: 30px;
	text-align: center;
	line-height: 30px;
}

.temperature {
	width: 100%;
	height: 180px;
	/* text-align: center; */
	/* line-height: 110px; */
	/* border: 1px solid black; */
	position: relative;
}

.temperature input {
	margin: 9px 0 0 73px;
	display: inline-block;
	width: 50%;
	height: 100px;
	font-size: 40px;
	text-align: center;
}
</style>
</head>
<body class="body">
	<div class="container">
		<!-- 选择户主类型 -->
		<form class="form" action="/gather/user/jkdj/save" method="POST" id="home_h5">
			<pf:token data="${token}"/> 
			<input type="hidden" id="userId" name="userId" value="${user.id}"> 
			<input type="hidden" id="gatherAreaId" name="gatherAreaId" value="${user.gatherAreaId}">
			<input type="hidden" id="gatherAreaName" name="gatherAreaName" value="${user.gatherAreaName}">
			<div class="title">
				<h3>健康信息申报</h3>
			</div>
			<div class="temperature">
				<div style="font-size: 22px;">当前体温</div>
				<input class="wendu" type="text" id="userTemperature" name="userTemperature"> &nbsp;&nbsp;
				<span style="position: absolute; bottom: 20%; font-size: 22px;">摄氏度</span>
			</div>
			<div>
				<span>姓名：</span><br> <input class="form-control" type="text" name="userName" value="${user.userName}" readonly>
			</div>
			<div>
				<span>手机号：</span><br> <input class="form-control" type="text" name="userPhone" value="${user.userPhone}" readonly>
			</div>
			<div>
				<span>房间号码：</span><br> <input class="form-control" type="text" name="houseNumber" value="${user.houseNumber}" readonly>
			</div>
			<div>
				<span>业主类型：</span><br> <input class="form-control" type="text" name="identityName" value="${user.identityName}" readonly>
			</div>
			<div>
				<span>申报时间</span><br> <input class="form-control" type="text" name="time" value="${time}" readonly>
			</div>
			<br> <input type="button" class="btn btn-primary form-control" onclick="btnonclick()" value="提交"><br>
		</form>
	</div>
	<script>
		function btnonclick() {
			var userTemperature = $('#userTemperature').val().trim();//温度
			if (userTemperature * 1 < 30) {
				alert("请输入您的体温！")
				return;
			} else if (userTemperature * 1 < 33) {
				alert("您的体温偏低呢！")
			} else if (userTemperature * 1 > 37) {
				alert("您的体温偏高哦！")
			} else {
			}
			home_h5.submit();
		}
	</script>
</body>
</html>